from django.conf.urls.defaults import *

urlpatterns = patterns(
    'django.views.generic',
    url(r'^$','simple.redirect_to', {'url': '/map/'}),
)

urlpatterns += patterns(
    'game_core.views',
    url(r'^map/', 'map', name='map'),
    url(r'^suburb/(?P<settlement_id>\d+)/$', 'suburb', name='suburb'),
    url(r'^suburb/(?P<settlement_id>\d+)/(?P<position>\d+)$', 
        'ground_slot', name='ground_slot'),
    url(r'^suburb/(?P<settlement_id>\d+)/(?P<position>\d+)/upgrade$', 
        'ground_slot_upgrade', name='ground_slot_upgrade'),
    url(r'^lowland/(?P<id>\d+)/$', 'lowland', name="lowland"),
    url(r'^settlement/(?P<settlement_id>\d+)/$', 'settlement', name='settlement'),
    url(r'^settlement/(?P<settlement_id>\d+)/(?P<position>\d+)$', 
        'building_slot', name='building_slot'),
)
